<style>
.content-group {background:#fff;border-radius: 0.5rem;margin-bottom:0.39rem}
</style>
<div class="fui-page shop-index-page" style="display:block;">
    <div class="fui-content" style="padding-bottom:4rem">
		<div ng-if="pagedata.pluginset.no_hdp!=1" id="carousel-container" class="carousel slide" data-role="carousel" data-param-auto="true">
					<div class="carousel-inner" role="listbox" style="height:auto">
					<div ng-class="{'item':1,'active':$index==0}" ng-repeat="item in pagedata.pluginset.hdps">						
						<a href="{{item.url}}">
							<img src="{{tomedia(item.picurl) || '../addons/jy_sitenews/resource/img/hdp01.jpg'}}" style="display: block; width: 100%; height: 100%;">
						</a>
					</div>
					</div>
						<style>
								.fui-swipe-page .fui-swipe-bullet {background: {background}; opacity: {opacity};}
								.fui-swipe-page .fui-swipe-bullet.active {opacity: 1;}
						</style>
						<div id="carousel-jinyun" class="fui-swipe-page" style="padding: 0 5px; bottom: 10px; ">
							<div class="fui-swipe-bullet" ng-repeat="item in pagedata.pluginset.hdps" ng-class="{'active':$index==0}" data-target="#carousel-container" data-slide-to="{{$index}}"></div>
						</div>
		</div>
		<div style="padding:0">
		<div ng-if="pagedata.pluginset.bankuai.length>0" class="fui-icon-group noborder col-4 radius">
			<a class="fui-icon-col external" ng-repeat="item in pagedata.pluginset.bankuai" href="javascript:;" ng-click="access_json(item.action)" data-nocache="true">
					<div class="icon">
					<img ng-src="{{tomedia(item.img) || '../core/resource/images/diy/icon/icon_goods.png'}}">
					</div>
					<div class="text">{{item.title}}</div>
			</a>
		</div>
		<div class="fui-cellone" style="padding:0.5rem;padding-bottom:0;z-index: 108;top:0;background:#fff">
			 <div class="fui-cellone-info">
				<div class="search-input" style="height:1.6rem">
					<form action="javascript:return true">
					<i id="searchsub" class="icon icon-sousuo1 bold" ng-click="tool.get_list('jy_sitenews/index/getlist/',true)" style="line-height: 1.7rem;"></i>
					<input type="search" placeholder="搜索文章" class="search" ng-model="pagedata.params.keyword" style="border: 1px solid #f9f9f9;height:1.6rem;text-align: left; color: #999; font-size:0.6rem;background:#f9f9f9;border-radius: 1rem;" />
					</form>
				</div>
			 </div>
			 <div class="fui-cellone-remark noremark">
			 	<span style="margin-left:0.3rem;font-size: 0.75rem;color:#999" ng-click="tool.get_list('jy_sitenews/index/getlist/',true)">搜索</span>
			 </div>
		</div>
		<div class="fui-tab-scroll" style="background:#fff">
			<div ng-class="{'item':1,'on':pagedata.params.group_id == 0}" href="javascript:;" ng-click="pagedata.params.group_id = 0;tool.get_list('jy_sitenews/index/getlist/',true)">全部</div>
			<div ng-repeat="item in pagedata.groups" ng-class="{'item':1,'on':pagedata.params.group_id == item.id}"  href="javascript:;" ng-click="pagedata.params.group_id = item.id;tool.get_list('jy_sitenews/index/getlist/',true)">{{item.title}}</div>
		</div>
		<div ng-include="sys_html('_newslist')"></div>
		</div>
		<div ng-if="pagedata.loading" class='infinite-loading'><span class='fui-preloader'></span><span style="margin-left:1.5rem"> 正在加载...</span></div>
		<div ng-include="sys_html('_copyright')"></div>
	</div>
</div>
<div ng-if="pagedata.showewm" class="popup">
	<div class="popup-body">
		<div class="popup-bottom">
			<i class="closed icon icon-cuowu" ng-click="pagedata.showewm=false"></i>
			<div class="fui-icon-group noborder col-5" style="padding-top:0.5rem">
				 <div class="fui-list">
					<div class="fui-card" style="margin-left:auto;margin-right:auto;padding-top:0;border-radius:0.5rem">
						<img style="width:8rem;height:8rem;border-radius:0.5rem" src="{{tomedia(pagedata.showitem.ewm) || '../addons/jy_sitenews/resource/img/code.png'}}"  />
					</div>
				</div>
				<div class="fui-line-title">
					<div class="text text-danger bold" style="margin-bottom: -8px;">———— *  <span style=";font-size:13px">微信扫上面二维码</span> * ————</div>
				</div>
			</div>
		</div>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script>
require(['bootstrap', 'hammer'], function($, Hammer){
		$('#carousel-container').carousel();
		var mc = new Hammer($('#carousel-container').get(0));
		mc.on("panleft", function(ev) {
			$('#carousel-container').carousel('next');
		});
		mc.on("panright", function(ev) {
			$('#carousel-container').carousel('prev');
		});
});
//滚动加载
scope.tool.get_list('jy_sitenews/index/getlist/isall=1&keyword='+scope.pagedata.params.keyword,true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_sitenews/index/getlist/isall=1&keyword='+scope.pagedata.params.keyword);
}
//手机软键盘--搜索
$("body").keydown(function() {
    if (event.keyCode == "13") {
        $('#searchsub').click();
    }
});
</script>